
package com.scs.application.modules.upms.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.modules.upms.entity.Office;
import com.scs.application.modules.upms.request.OfficeQueryRequest;
import com.scs.application.modules.upms.vo.OfficeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* 组织机构 mapper对象
*/
@Mapper
public interface OfficeMapper extends BaseMapper<Office> {

    IPage<OfficeVO> page(IPage page, @Param("request") OfficeQueryRequest request);


    /**
     * 通用分页查询
     * @param page
     * @param wrapper
     * @return
     */
    Page<Office> pageCommon(IPage page, @Param(Constants.WRAPPER) QueryWrapper<Office> wrapper);

}
